<?php //unset($form['title']); 
/*echo "<pre>";
print_r($form['field_district']);
echo "</pre>";*/
//first name
unset($form['field_first_name']['0']['value']['#title']);
$form['field_first_name']['0']['value']['#value'] ="first name";
$form['field_first_name']['0']['value']['#attributes'] = array('class'=>"input_small");

//family name
unset($form['field_family_name']['0']['value']['#title']);
$form['field_family_name']['0']['value']['#value'] ="family name";
$form['field_family_name']['0']['value']['#attributes'] = array('class'=>"input_small");

//mobile name
unset($form['field_mobile']['0']['value']['#title']);
$form['field_mobile']['0']['value']['#value'] ="type 10 digit mobile number";
$form['field_mobile']['0']['value']['#attributes'] = array('class'=>"signup_input1");

//conf_mobile name
unset($form['field_conf_mobile']['0']['value']['#title']);
$form['field_conf_mobile']['0']['value']['#value'] ="re-type 10 digit mobile number";
$form['field_conf_mobile']['0']['value']['#attributes'] = array('class'=>"signup_input1");

//mail name
unset($form['mail']['#title']);
unset($form['mail']['#description']);
$form['mail']['#value'] ="e.g. john@gmail.com";
$form['mail']['#attributes'] = array('class'=>"signup_input");

//gender name
unset($form['field_gender']['value']['#title']);
$form['field_gender']['value']['#attributes'] = array('class'=>"input_select_small");

//dob name
unset($form['field_dob']['0']['value']['#title']);
$form['field_dob']['0']['value']['day']['#options'][''] = "date";
$form['field_dob']['0']['value']['month']['#options'][''] = "month";
$form['field_dob']['0']['value']['year']['#options'][''] = "year";
$form['field_dob']['0']['value']['day']['#attributes'] = array('class'=>"input_select_small");
$form['field_dob']['0']['value']['month']['#attributes'] = array('class'=>"input_select_small");
$form['field_dob']['0']['value']['year']['#attributes'] = array('class'=>"input_select_small");

//district name
unset($form['field_district']['0']['value']['#title']);
$form['field_district']['0']['value']['#value'] ="district name";
$form['field_district']['0']['value']['#attributes'] = array('class'=>"input_small");


//state selector
unset($form['field_state']['#title']);
unset($form['field_state']['value']['#title']);
$form['field_state']['value']['#attributes'] = array('class'=>"input_select_small");
$form['field_state']['#attributes'] = array('class'=>"input_select_small");
//print drupal_render($form['field_state']['value']['#options']);
//print drupal_render($form['field_state']);


//captcha name
unset($form['captcha']['#description']);
unset($form['captcha']['captcha_widgets']['captcha_response']['#title']);
unset($form['captcha']['captcha_widgets']['captcha_response']['#description']);
$form['captcha']['captcha_widgets']['captcha_response']['#attributes'] = array('class' =>"input_small1");

//submit
unset($form['submit']['#value']);
$form['submit']['#attributes'] = array('class'=>"signup_btn");

//print drupal_render($form);
/*
print drupal_render($form['field_first_name']);
print drupal_render($form['field_family_name']);
print drupal_render($form['field_mobile']);
print drupal_render($form['field_conf_mobile']);
print drupal_render($form['mail']);
print drupal_render($form['field_gender']);
print drupal_render($form['field_dob']);
print drupal_render($form['captcha']);
print drupal_render($form['submit']);*/
//print drupal_render($form);
?>  
<?php if(!$user){
global $base_url;
?>
<div class="signup_form">
        	<p class="signup_img"><img src="<?php global $base_url; print $base_url."/".path_to_theme()."/images/sign_up_image.gif";?>" width="88" height="38" /></p>
            
   <table cellpadding="2" cellspacing="2" class="signup_table_register">          
     <tr>
        <td><span class="input_fld_name">Full name </span></td> 
        <td><?php print drupal_render($form['field_first_name']);?> <?php print drupal_render($form['field_family_name']);?></td> 
     </tr>  
     <tr>
        <td><span class="input_fld_name">Your mobile number</span></td> 
        <td><input type="text" readonly="readonly" style="font-size:11px;width:30px; float:left; margin-top:5px; margin-bottom:8px;" value="+91" />
		<?php print drupal_render($form['field_mobile']);?></td> 
     </tr> 
     <tr>
        <td><span class="input_fld_name">Confirm mobile number</span></td> 
        <td><input type="text" readonly="readonly" style="font-size:11px;width:30px; float:left; margin-bottom:-8px;" value="+91" />
		<?php print drupal_render($form['field_conf_mobile']);?></td> 
     </tr> 
     <tr>
        <td><span class="input_fld_name">Your email ID</span></td> 
        <td><?php print drupal_render($form['mail']);?></td> 
     </tr> 
     <tr>
        <td><span class="input_fld_name">Gender</span></td> 
        <td><?php print drupal_render($form['field_gender']);?></td> 
     </tr> 
     <tr>
        <td><span class="input_fld_name">Birthday</span></td> 
        <td><div class="birthday_boxes"><?php print drupal_render($form['field_dob']);?></div></td> 
     </tr>
     <tr>
        <td><span class="input_fld_name">District / State</span></td> 
        <td><?php 
	
	print drupal_render($form['field_district']);?>&nbsp;<?php print drupal_render($form['field_state']);?></td> 
     </tr>
      
     <tr>
        <td><span class="input_fld_name">Type characters </span></td> 
        <td> <span><?php print drupal_render($form['captcha']);?></span>  </td> 
     </tr> 
</table>         
            
            
            
             
             
             
             
              
              
                 
              <p class="becoming_text">
              <span>By becoming <i>'sms vidya'</i> member you are agreeing to the 
              <a href="<?php print $base_url."/terms";?>" rel="lightframe[Terms & Conditions|width:400px; height:300px; scrolling: auto;]"><span class="blue" style="font-size:11px;font-weight:normal;">terms & conditions</span></a>              
	      <!--<a href="#"><span class="blue" style="font-size:11px;font-weight:normal;">terms & conditions</span></a>-->
          </span></p>
<p class="submit_btn">              <span class="input_fld_name"></span>    <?php  print drupal_render($form['submit']); // print the submit button   ?>
</p>
    <div style="display:none;">
    <?php
        print drupal_render($form); // print the submit button
      ?>
    </div>

        </div>
        <?php 
        }
		?>
